import click
from dotenv import load_dotenv, find_dotenv


load_dotenv(find_dotenv())


@click.command()
@click.option("--host", default="localhost", help="Host to connect to", allow_from_autoenv=True)
@click.option("--port", default=8080, help="Port to connect to", allow_from_autoenv=True)
def allow_from_autoenv(host: str, port: int):
    click.echo(f"host: {host}, port: {port}")
